package example.gl2jniforceball;

public class BodyInfo {
    public float x;
    public float y;
    public float angle;// rad
    public boolean bullet;
    public boolean awake;
    public boolean active;
    public float linearX;
    public float linearY;

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public float getAngle() {
        return angle;
    }

    public void setAngle(float angle) {
        this.angle = angle;
    }

    public void setValues(float x, float y, float angle) {
        this.x = x;
        this.y = y;
        this.angle = angle;
    }

    public boolean isBullet() {
        return bullet;
    }

    public void setBullet(boolean bullet) {
        this.bullet = bullet;
    }

    public boolean isAwake() {
        return awake;
    }

    public void setAwake(boolean awake) {
        this.awake = awake;
    }

    public boolean isFrozen() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public void setLinerVelocity(float x, float y) {
        linearX = x;
        linearY = y;
    }

    public void setStatus(boolean b, boolean aw, boolean a) {
        this.bullet = b;
        this.awake = aw;
        this.active = a;
    }
}
